package com.dai.spec.common.enums;

/**
 * 院系类型枚举
 */
public enum DepartmentType {
    SHUJI("0","数学与计算机学院"),
    TIYU("1","体育学院"),
    YINWU("2","音舞学院"),
    ZHENGFA("3","政法学院"),
    HUASHENG("4","化生学院"),
    SHUFA("5","书法学院"),
    WAIGUOYU("6","外国语学院"),
    LIGON("7","理工学院"),
    WENCHUAN("8","文传学院"),
    YIXUE("9","医学院"),
    NONXUE("10","农学院"),
    SHENGKE("11","生科学院"),
    JINGGUAN("12","经管学院"),
    MAKESIZHUYI("13","马克思主义学院"),
    MEISHE("14","美设学院"),
    CHAUNGXINCHUANGYE("15","创新创业学院");

    private  String code;
    private String value;
    DepartmentType(String code,String value){
        this.code =code;
        this.value =value;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
    public  static String getValueByCode(String code){
        for (DepartmentType departmentEnum : DepartmentType.values()) {
            if (departmentEnum.getCode().equals(code)){
                return departmentEnum.getValue();
            }
        }
        return null;
    }
}
